<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
$(function(){
	$("#saveButton").click(function(){
		var storiedBuilding = $("#storiedBuilding").val();
		var dormitory = $("#dormitory").val();
		var studentId = $("#studentId").val();
		var cnName = $("#cnName").val();
		var content = $("#content").val();
		if(storiedBuilding!="" && dormitory!="" && studentId!="" && cnName!="" && content!=""){
			$.ajax({
				type:'POST',
				url:'theRepairAddData.action',
				data:{storiedBuilding:storiedBuilding,dormitory:dormitory,studentId:studentId,cnName:cnName,content:content},
				datatype:'json',
				success:function(msg){
					if(msg.status=="200"){
						parent.closeDialog();
					}else{
						$.messager.alert("提示","保存失败");
					}
				}
			});
		}else{
			$.messager.alert("提示","表单不完整");
		}
	});
});